﻿using System;
using System.Collections.Generic;
using System.Data;
using System.Linq;
using System.Text;

namespace eTMS.Controls
{
    public class ComboBoxQuanHeMonHoc : ComboBoxBindingBase<object>
    {
        public override void BindData()
        {
            DataTable table = new DataTable();
            table.Columns.Add("ID", typeof(Byte));
            table.Columns.Add("Name", typeof(string));
            DataRow row = table.NewRow();
            table.Rows.Add(row);
            row["ID"] = eTMS.Commons.Constants.MONHOC_QUANHE_SONGHANH;
            row["Name"] = "Song hành";
            row = table.NewRow();
            table.Rows.Add(row);
            row["ID"] = eTMS.Commons.Constants.MONHOC_QUANHE_TIENQUYET;
            row["Name"] = "Tiên quyết";
            this.DisplayMember = "Name";
            this.ValueMember = "ID";
            this.DataSource = table;
        }
    }
}
